using System;

namespace IQIGame.Onigao.GamePlay
{
    [AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = false)]
    public class VisualElementFieldAttribute : Attribute
    {
        public bool isEditable { get; }
        public string displayName { get; }

        public VisualElementFieldAttribute(bool isEditable, string displayName = "")
        {
            this.isEditable = isEditable;
            this.displayName = displayName;
        }
        
        public VisualElementFieldAttribute(string displayName = "")
        {
            this.isEditable = true;
            this.displayName = displayName;
        }
    }
}
